package com.cn.mapper.dao.db5.Equipment;

import com.cn.bean.dto.EquipmentoperationDto;
import com.cn.bean.pojo.PartsManagement.EquipmentBasicInfoTable;
import com.cn.bean.pojo.PartsManagement.EquipmentDisassemblySubTable;
import com.cn.bean.pojo.PartsManagement.EquipmentInstallationMainTable;
import com.cn.bean.pojo.PartsManagement.EquipmentInstallationSubTable;
import com.cn.bean.pojo.lbj.ComponentBasicInformationTable;
import com.cn.bean.pojo.lbj.ComponentSingleRegistrationTable;
import com.cn.bean.pojo.lbj.EquipmentCurrentComponentSingleCompositionTable;
import com.cn.bean.vo.Equipment.ComponentBasicInformation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EquipmentoperationDao {
    List<EquipmentInstallationMainTable>selectEquipmentoperation(EquipmentInstallationMainTable equipmentInstallationMainTable);
    List<EquipmentoperationDto>selectEquipmentInstallationSubTable(int id);
    List<EquipmentoperationDto>selectEquipmentDisassemblySubTable(int id);
    List<EquipmentBasicInfoTable>selectEquipmentBasicInfoTable(EquipmentBasicInfoTable equipmentBasicInfoTable);
    List<ComponentBasicInformationTable>selectComponentBasicInformation(ComponentBasicInformationTable componentBasicInformation);
    List<EquipmentoperationDto>selectInstallationSubTable(int id);
    List<EquipmentoperationDto>selectDisassemblySubTable(int id);
    List<EquipmentCurrentComponentSingleCompositionTable>selectEquipment(String uniqueCode);
    Boolean insertEquipmentInstallationMain(EquipmentInstallationMainTable equipmentInstallationMainTable);
    Boolean insertEquipmentInstallationSub(EquipmentInstallationSubTable equipmentInstallationSubTable);
    Boolean insertEquipmentDisassemblySubTable(EquipmentDisassemblySubTable equipmentDisassemblySubTable);
    Boolean updateEquipmentInstallationMain(EquipmentInstallationMainTable equipmentInstallationMainTable);
    Boolean delEquipmentInstallationSub(int id);
    Boolean delEquipmentDisassemblySub(int id);
    Boolean updateAudit(int id);
    Integer getMainAutoid();
    Integer getEquipmentInstallationSubAutoid();
    Integer getEquipmentDisassemblyAutoid();
    Boolean delMain(int id);
    Boolean delSubTable(int id);
    Boolean delDisassemblySubTable(int id);
    Boolean insertCurrentComponent(EquipmentCurrentComponentSingleCompositionTable compositionTable);
    Boolean delCurrentComponent(EquipmentCurrentComponentSingleCompositionTable compositionTable);
    Boolean updateComponentStatus(ComponentSingleRegistrationTable componentSingle);
    Boolean completeWorkOrde(int workOrderNumber);
}
